package com.hpe.pojo;

import java.sql.Timestamp;

/**
 * Created by 李宇寒
 * 2017/9/22 0022 上午 12:08.
 */
public class Enterpriseentity {
    private int enterid;
    private String entername;
    private String address;
    private Timestamp entertime;
    private Integer demandCount;

    public int getEnterid() {
        return enterid;
    }

    public void setEnterid(int enterid) {
        this.enterid = enterid;
    }

    public String getEntername() {
        return entername;
    }

    public void setEntername(String entername) {
        this.entername = entername;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Timestamp getEntertime() {
        return entertime;
    }

    public void setEntertime(Timestamp entertime) {
        this.entertime = entertime;
    }

    public Integer getDemandCount() {
        return demandCount;
    }

    public void setDemandCount(Integer demandCount) {
        this.demandCount = demandCount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Enterpriseentity that = (Enterpriseentity) o;

        if (enterid != that.enterid) return false;
        if (entername != null ? !entername.equals(that.entername) : that.entername != null) return false;
        if (address != null ? !address.equals(that.address) : that.address != null) return false;
        if (entertime != null ? !entertime.equals(that.entertime) : that.entertime != null) return false;
        if (demandCount != null ? !demandCount.equals(that.demandCount) : that.demandCount != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = enterid;
        result = 31 * result + (entername != null ? entername.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (entertime != null ? entertime.hashCode() : 0);
        result = 31 * result + (demandCount != null ? demandCount.hashCode() : 0);
        return result;
    }
}
